import http from '@/utils/request'

/**医保信息 */
export interface HospitalInfo {
  hospitalName: string
  hospitalCode: string
}

/**获取医院基本信息  */
function GetHospitalInfo() {
  return http.get<HospitalInfo>(`/sys/getHospital`)
}

/**获取医院基本信息  */
function SaveHospitalInfo(data: HospitalInfo) {
  return http.post(`/sys/saveHospital`, data)
}

/**医院信息 */
export const HospitalAPIs = {
  /**获取医院信息 */
  GetHospitalInfo,
  /**保存医院信息 */
  SaveSaveHospitalInfo: SaveHospitalInfo,
}
